#include<iostream>
#include"searcher.hpp"

const std::string input="data/raw_html/raw.txt";

int main(){

    //创建查找对象
    ns_searcher::searcher* searcher=new ns_searcher::searcher();
    searcher->InitSearcher(input);
    std::string qurey;
    std::string json_string;
    while(true){
        std::cout<<"Please Enter You Search Query# ";
        getline(std::cin,qurey);
        std::cout<<"qurey: "<<qurey<<"..."<<std::endl;
        searcher->Search(qurey,&json_string);
        std::cout<<json_string<<std::endl;
    }
    return 0;
}